/**
 * @从终端输入两个整数，看第一个数能否被第二个数整除
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int x, y;
	
	do {
		printf("请输入第一个数：");
		x = GetInt();
	} while (x <= 0);

	do {
		printf("请输入第二个数：");
		y = GetInt();
	} while (x > y);
	

	if (y % x == 0) {
		printf("%d能被%d整除\n", x, y);
	} else {
		printf("%d不能被%d整除\n", x, y);
	}
}
